package com.biz.cms.admin.fileUplaod.suport;

import org.apache.commons.lang.StringUtils;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.criterion.Restrictions;

import com.ienergy.base.support.QueryParameter;
import com.ienergy.base.support.QueryParameterProcessor;

/**
* 文件上传处理结果 页面查询处理过程
* @author SystemGen
* @date 2016-08-18
*/
public class FileUplaodProcProcessor implements QueryParameterProcessor {

	public void process(Criteria criteria, QueryParameter parameter) {
		
		//提取查询参数
		FileUplaodProcParam param = (FileUplaodProcParam) parameter;

		if (StringUtils.isNotEmpty(param.getId())){
			criteria.add(Restrictions.like("id", param.getId()+"%"));
		}

		
	}

	public void process(Query query, QueryParameter parameter) {
		// TODO Auto-generated method stub

	}

}
